<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018\8\21 0021
 * Time: 11:02
 */
//基础准备
namespace jingshan;
header("Content-type:text/html;charset=utf8");
include_once 'lib/Mredis.class.php';
include_once 'lib/PdoMiao.class.php';

//获取数据
$Mredis = new Mredis();
$v = $Mredis->get_value();
$v = array_map(function ($a){
    return unserialize($a);
},$v);

//插入数据
$i = new PdoMiao();
$i->insert($v);

//var_dump($i->select());